package com.zhz.mall.portal.dto;

import com.zhz.mall.portal.modules.oms.model.OmsOrderItem;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/***
 * @author zhouhengzhe
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel("订单详情数据传输对象")
public class OrderDetailDTO {
    @ApiModelProperty("订单id")
    private Long id;

    @ApiModelProperty("省份/直辖市")
    private String receiverProvince;

    @ApiModelProperty("城市")
    private String receiverCity;

    @ApiModelProperty("区")
    private String receiverRegion;

    @ApiModelProperty("详细地址")
    private String receiverDetailAddress;

    @ApiModelProperty("应付金额（实际支付金额）")
    private BigDecimal payAmount;

    @ApiModelProperty("订单编号")
    private String orderSn;

    @ApiModelProperty("订单详细商品列表")
    private List<OmsOrderItem> orderItemList;

    @ApiModelProperty("提交时间")
    private Date createTime;
    @ApiModelProperty("订单状态：0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单")
    private Integer status;

    @ApiModelProperty("正常订单超时时间(分)")
    private Integer normalOrderOvertime;
}
